package com.his.system.manager.mapper;

import com.his.system.manager.base.dao.BaseMapper;
import com.his.system.manager.dto.PatientDrugListDto;
import com.his.system.manager.dto.PatientcostsListDto;
import com.his.system.manager.entity.RegisterEntity;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * RegisterMapper继承基类
 */
@Repository
public interface RegisterMapper extends BaseMapper<RegisterEntity, Integer> {
    RegisterEntity findByCasenumber(String casenumber);

    List<PatientcostsListDto> selectPatientcostsByCaseNumber(@Param("casenumber") String casenumber);

    List<PatientDrugListDto> selectPatientDrug(@Param("drugsTempID") String drugsTempID);
}